﻿#ifndef COMMONBLOWAIR_H
#define COMMONBLOWAIR_H

#include <QObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QMap>
#include <QPair>

/*
 * 更改时间
*/
class CommonBlowair : public QObject
{
    Q_OBJECT
public:
    explicit CommonBlowair(QObject *parent = nullptr);
    virtual ~CommonBlowair();

    void initPin();
    static CommonBlowair * gestance();

    void saveRealBlowair();

    void insertData(int pins ,int runtimes, int stoptimes);
    void restoreData();

    QList<int> keyPins();

    QPair<int ,int>  getPinData(int pins);
signals:

private:
    static CommonBlowair  * m_commonBlowair;


    QMap<int ,QPair<int ,int> > m_commonMap;
    QMap<int ,QPair<int ,int> > m_realMap;

    QString m_docParhRealFile ;

};

#endif // COMMONBLOWAIR_H
